home *** CD-ROM | disk | FTP | other *** search
/ PC World 1999 October / PCWorld_1999-10_cd1.bin / Software / Servis / X-setup / _SETUP.1 / XQ QuickLaunch 1.xpl < prev    next >
Text File  |  1999-06-11  |  2KB  |  57 lines

  1. "FILE"="Xteq Systems X-Setup Plugin 5.0"
  2. "TYPE"="5"
  3. "COUNT"="1"
  4. "UIPATH"="Appearance\Start menu\Quick Start Bar"
  5. "NAME"="Show Desktop link"
  6. "VERSION"="1.12"
  7. "LANGUAGE"="VBScript"
  8. "TEXT 1"="Create "Show Desktop" link"
  9. "DESCRIPTION 1"="If you have delete the "Show Desktop" link in your Quick Launch bar, click the first button to create it again."
  10. "DESCRIPTION 2"="The Quick Launch bar is installed with the ActiveDesktop feature of Internet Explorer 4.X and above."
  11. "AUTHOR"="Xteq Systems"
  12. "COPYRIGHT"="Copyright ⌐ Xteq Systems - All Rights Reserved"
  13. "COMMENT 1"="For more information, go to http://www.xteq.com or write to TeXHeX@xteq.com."
  14.  
  15.  
  16. sV1="HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\Shell Folders\AppData"
  17. sPath1="\Microsoft\Internet Explorer\Quick Launch\Show Desktop.scf"
  18.  
  19. Sub Plugin_Initialize 
  20.  s=RegReadValue(sV1)
  21.  if IsEmpty(s)=false then
  22.     'OK!
  23.  else
  24.     Disable
  25.  end if
  26.  
  27. End Sub
  28.  
  29. Sub Plugin_CheckData(ElementIndex)
  30. End Sub
  31.  
  32. Sub Plugin_Apply(ElementIndex,ElementSubIndex)
  33.  Select Case ElementIndex
  34.  Case 1
  35.   s=RegReadValue(sV1)
  36.   if IsEmpty(s)=false then
  37.      s=s & sPath1
  38.  
  39.      'Let's write the file!!!
  40.      Call IniWriteValue(s,"Shell","Command","2")
  41.      Call IniWriteValue(s,"Shell","IconFile","explorer.exe,3")
  42.      Call IniWriteValue(s,"Taskbar","Command","ToggleDesktop")
  43.      'I'm sometimes simply TOOO kidding...
  44.      Call IniWriteValue(s,"Xteq","Comment","This file created with Xteq Systems's X-Setup")
  45.  
  46.   else
  47.      Call MsgError("Unable to read AppData value from registry - maybe ActiveDesktop is not installed")
  48.   end if
  49.  
  50.  
  51.  Case 2
  52.  End Select
  53. End Sub
  54.  
  55. Sub Plugin_Terminate 
  56. End Sub
  57.